package com.input.example;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class WriterTest {

	public static void main(String[] args) throws IOException {

		File file = new File("C:/javabatch/inputTezt2.txt");

		FileWriter fileWriter = new FileWriter(file);

		BufferedWriter bufferedWriter = new BufferedWriter(fileWriter,100);

		bufferedWriter
				.write(" This is from Buffered Writer \r\n This is into new line");
		// fileWriter.append("This is from Writer Class - Next Content \r\n this should be in new line");

		bufferedWriter.flush();
		bufferedWriter.close();

		fileWriter.close();

	}

}
